package com.da.springtest.container.module2;

import com.da.springtest.container.module1.Service2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author chenlida
 * @date 2020/6/10 15:55
 * @description
 */
@Component
public class Service3 {
    @Autowired
    private Service1 service1;
    @Autowired
    private Service2 service2;

    public String m1() {
        return this.service2.m1();
    }

    public String m2() {
        return this.service1.m2();
    }

}
